package com.iqiu.cms.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import com.ibeetl.admin.core.util.ValidateConfig;

import org.beetl.sql.core.TailBean;
import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;


/* 
* 用户消息
* gen by Spring Boot2 Admin 2019-03-29
*/
public class CoreUserMessage extends BaseEntity{

    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID	

    private Integer id ;
	

    private Integer userId ;
	

    private String msg ;
	
    //0未读1已读

    private Integer isRead ;
	

    private Date createTime ;
	
	/*逻辑删除标志*/
	@InsertIgnore
	@LogicDelete(value = 1)

    private Integer delFlag ;
	
    public CoreUserMessage()
    {
    }

    public Integer getId(){
	    return  id;
    }
    public void setId(Integer id){
        this.id = id;
    }

    public Integer getUserId(){
	    return  userId;
    }
    public void setUserId(Integer userId){
        this.userId = userId;
    }

    public String getMsg(){
	    return  msg;
    }
    public void setMsg(String msg){
        this.msg = msg;
    }

    /**0未读1已读
    *@return 
    */
    public Integer getIsRead(){
	    return  isRead;
    }
    /**0未读1已读
    *@param  isRead
    */
    public void setIsRead(Integer isRead){
        this.isRead = isRead;
    }

    public Date getCreateTime(){
	    return  createTime;
    }
    public void setCreateTime(Date createTime){
        this.createTime = createTime;
    }

    public Integer getDelFlag(){
	    return  delFlag;
    }
    public void setDelFlag(Integer delFlag){
        this.delFlag = delFlag;
    }


}
